﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dominion.Core;

namespace Dominion.Core
{
    public class MiliciaBehavior : Behavior
    {
        public override void Run(Player player)
        {
            foreach (Player p in player.Others)
            {
                foreach (Card c in player.CardsToAction.MiliciaCardsToDicard)
                {
                    p.Cards.DiscardCard(c);
                }
            }
            player.BuyBonus += 2;

            GameEvents.RaiseMiliciaAttackEvent(player);
        }


    }
}
